package com.dragon.mmochat.model.enumType;

public enum MmochatServerStateType {
	未知(0), 维护中(1), 未启动(2), 运行中(3);

	int key;

	MmochatServerStateType(int v) {
		key = v;
	}

	public int getKey() {
		return key;
	}

	public static MmochatServerStateType get(int v) {
		for (MmochatServerStateType type : MmochatServerStateType.values()) {
			if (type.getKey() == v) {
				return type;
			}
		}
		return null;
	}
}
